package com.mcglib.flac
{
	import flash.display.DisplayObject;
	import flash.display.MovieClip;
	import flash.events.EventDispatcher;
	import flash.events.IEventDispatcher;
	import flash.events.MouseEvent;
	
	public class DataRender extends EventDispatcher implements IDataRenderer
	{
		private var _data:*;
		
		private var _selected:Boolean;
		
		protected var _ui:DisplayObject;
		
		protected var _component:FlacComponent;
		
		private var _itemIndex:uint;
		
		private var _selectable:Boolean = true;
		
		public function DataRender(target:IEventDispatcher=null)
		{
			super(target);
		}
		
		public function initDataRenderer(ui:DisplayObject, component:FlacComponent):void
		{
			_ui = ui;
			_component = component;
			
			
		}
		
		public function get ui():DisplayObject{
			return _ui;
		}
		
		public function set data(v:*):void
		{
			_data = v;
		}
		
		public function get data():*
		{
			return _data;
		}
		
		public function set selected(v:Boolean):void
		{
			_selected = v;
		}
		
		public function get selected():Boolean
		{
			return _selected;
		}
		
		public function refresh():void
		{
		}
		
		public function clearRenderer():void
		{
		}
		
		public function set itemIndex(v:uint):void
		{
			_itemIndex = v;
		}
		
		public function get itemIndex():uint
		{
			return _itemIndex;
		}
		
		public function get selectable():Boolean
		{
			return _selectable;
		}
		
		public function set selectable(v:Boolean):void
		{
			_selectable = v;
		}
		
		public function onMouseClick(e:MouseEvent):void
		{
			// TODO Auto Generated method stub
			
		}
		
		public function onMouseOut(e:MouseEvent):void
		{
			// TODO Auto Generated method stub
			
		}
		
		public function onMouseOver(e:MouseEvent):void
		{
			// TODO Auto Generated method stub
			
		}
		
		protected function get mcUI():MovieClip{
			return ui as MovieClip;
		}
	}
}